<script>
	import "@/uni_modules/uni-upgrade-center-app/utils/check-update"
export default {
	onLaunch: function() {
		console.log('App Launch');
		
		//app启动时打开启动广告页
		var w = plus.webview.open(
			'hybrid/html/advertise/advertise.html',
			'本地地址',
			{ top: 0, bottom: 0, zindex: 999 },
			'fade-in',
			500
		);
		//设置定时器，4s后关闭启动广告页
		setTimeout(function() {
			plus.webview.close(w);
		}, 4000);
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script> 

<style>
*{
	margin: 0;
	padding: 0;
}
</style>
